package com.qiaoba.module.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiaoba.common.database.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 岗位
 *
 * @author ailanyin
 * @date 2023-09-10 08:53:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_post")
public class SysPost extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @Excel(name = "岗位ID", width = 20)
    @Schema(description = "岗位ID")
    private String postId;

    @Excel(name = "岗位名称", width = 20)
    @Schema(description = "岗位名称")
    private String postName;

    @Excel(name = "岗位编码", width = 20)
    @Schema(description = "岗位编码")
    private String postCode;

    @Excel(name = "岗位序号", width = 20)
    @Schema(description = "岗位序号")
    private Integer postSort;

    @Excel(name = "状态", width = 20, replace = {"正常_1", "异常_0"})
    @Schema(description = "状态 1正常0禁用")
    private String status;

    @Excel(name = "备注", width = 20)
    @Schema(description = "备注")
    private String remark;
}
